﻿package com.jfdesgagne.utils.event {
	import flash.events.Event;
	
	public class StringEvent extends Event {
		public var text:String;
		
		public function StringEvent($type:String, $text:String, $bubbles:Boolean = false, $cancelable:Boolean = false) {
			super($type, $bubbles, $cancelable);
			this.text = $text;
		}
		
		public override function clone():Event {
			return new StringEvent(type, this.text, bubbles, cancelable);
		}
		
        public override function toString():String {
			 return formatToString("StringEvent", "params", "type", "bubbles", "cancelable");
		}
	}
}